Add java-tron-up package#8825
Conversation
|
Code sync follow-up:
|
|
@metamaskbot publish-preview |
1 similar comment
|
@metamaskbot publish-preview |
|
@metamaskbot publish-preview |
|
Preview builds have been published. Learn how to use preview builds in other projects. Expand for full list of packages and versions. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 82b6ec4. Configure here.
This reverts commit 82b6ec4.
| @@ -0,0 +1,352 @@ | |||
| /* eslint-disable jest/expect-expect, n/no-sync */ | |||
There was a problem hiding this comment.
Is there a reason why we aren't using Jest expectations in this file?
| // An object that configures minimum threshold enforcement for coverage results | ||
| coverageThreshold: { | ||
| global: { | ||
| branches: 35, |
There was a problem hiding this comment.
Is there a reason why we do not have full test coverage?
| @@ -0,0 +1,18 @@ | |||
| export { | |||
There was a problem hiding this comment.
I realize that the Yarn constraints file requires all packages to have an API, but in this case it seems we can make an exception. Perhaps we can remove this file as well as exports, main, and types from package.json and we can modify yarn.config.cjs to exclude this package from various checks that require these fields to be set?

Description
Adds
@metamask/java-tron-upto the core monorepo using the generated package structure, then replaces the scaffold with the existing java-tron runtime installer implementation.Ownership follows the runtime tooling/platform pattern and includes Networks, matching the Tron Snap ownership direction.
Changes
packages/java-tron-up.java-tron-upCLI bin fromdist/bin/java-tron-up.mjs.teams.jsonownership.Verification
yarn workspace @metamask/java-tron-up run buildyarn workspace @metamask/java-tron-up run testyarn eslint packages/java-tron-upyarn constraintsyarn lint:misc --check packages/java-tron-up/package.json packages/java-tron-up/README.md packages/java-tron-up/src/index.ts packages/java-tron-up/src/install.ts packages/java-tron-up/src/install.test.ts packages/java-tron-up/src/bin/java-tron-up.ts packages/java-tron-up/jest.config.js .github/CODEOWNERS teams.json README.md tsconfig.json tsconfig.build.jsonyarn readme-content:checkyarn lint:teamsyarn workspace @metamask/java-tron-up run changelog:validateNote
Medium Risk
Adds a new CLI that downloads, verifies, caches, and executes external java-tron and Java runtime artifacts, so failures or supply-chain issues could affect CI/dev workflows. Impact is scoped to the new package and build/reference wiring (no existing runtime behavior changed).
Overview
Adds a new runtime-tooling package,
@metamask/java-tron-up, including ajava-tron-upCLI and exported install APIs to download, SHA-256 verify, cache, and install a platform-specificFullNode.jarplus a matching managed Java runtime, and generate anode_modules/.bin/java-tronwrapper.Wires the package into the monorepo (TypeScript project references,
yarn.lock, README package list) and sets ownership viaCODEOWNERS/teams.json, with initial docs, licenses, typedoc config, and Jest tests covering install/cache/cleanup behavior.Reviewed by Cursor Bugbot for commit 7ad3fd3. Bugbot is set up for automated code reviews on this repo. Configure here.